package response

import (
	"io"
	"net/http"
)

type HttpResponse struct {
	response http.ResponseWriter
}

func NewHttpResponse(w http.ResponseWriter) ResponseInterface {
	return &HttpResponse{
		response: w,
	}
}

func (r *HttpResponse) GetIoWriter() io.Writer {
	return r.response
}

func (r *HttpResponse) HeaderAdd(key string, value string) {
	r.response.Header().Add(key, value)
}
func (r *HttpResponse) HeaderSet(key string, value string) {
	r.response.Header().Set(key, value)
}
